package Offer.offer2020;

/**
 * 单例模式
 * 饿汉式
 */
public class Test02 {

    private static Test02 instance = new Test02();

    //构造方法私有化
    private Test02() {

    }

    public static Test02 getInstance() {
        return instance;
    }
}
